package com.erp.entity.sale;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SaleRejected {
    private Integer id;

    private Integer isExamined;//是否审核0暂存 1提交 2 审核

    private String rejectNumber;//单据编号

    private Integer customerId;//客户id

    private String customerAddress;//客户地址

    private Integer employeeId;//销售员id

    private Integer examinerId;//审核人人id
    private Integer unshippedNum;//未入库数量

    private String linkQuoteNumber;//关联报价单编号

    private String linkSaleOrderNumber;//关联销货单编号
    private String linkLogisticNumber;//关联物流单编号

    private String linkSaleNumber;//关联销货单编号

    private Integer sourceGoodsNum;//源销货数量

    private Integer rejectGoodsNum;//退货数量

    private BigDecimal thisRefund;//退款金额

    private BigDecimal uncollectedAmount;//未收款金额

    private Integer invoiceType;//单据类别(1)

    private Integer rejectStatus;//退款状态
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date receiptDate;//单据日期

    private BigDecimal discountRate;//退货优惠率

    private BigDecimal discountAmount;//优惠金额

    private BigDecimal rejectPriceDis;//优惠后金额

    private Integer balanceAccountId;//结算账户ID

    private BigDecimal thisDebt;//本次欠款

    private BigDecimal sellingCost;//销售费用
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date receiveDate;//收款日期

    private Integer deliveryTyId;//交货方式id

    private Integer logisticsCompanyId;//物流公司ID

    private Integer companyId;//公司id

    private Integer makerId;//制单人id
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;//创建时间

    private Integer isDelete;
    private String remarks;
    //-------------冗余字段----------
    private List<SaleRejectedDetail> saleRejectedDetailList;
    private BigDecimal saleAmount;//销售金额
    private BigDecimal totalTaxAmount;//税额
    private String customerName;//客户名称
    private String customerTypeName;//客户类别名称
    private String employeeName;//销售人员名称
    private String deliveryTyName;//交货方式名称
    private String logisticsCompanyName;//物流公司名称
    private String linkRouteName;//关联线路名称
    private String balanceAccountName;//结算账户名称
    private String examinerName;//审核人名称
    private String makerName;//制单人名称


}